import {
  Controller,
  Get,
  Post,
  Request,
  ParseIntPipe,
  Param,
} from '@nestjs/common';
import { AppService } from './app.service';

@Controller('get')
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get('list')
  getHello(): string {
    return this.appService.getHello();
  }
  @Post(':id')
  create(@Param('id', ParseIntPipe) param) {
    return param;
  }
}
